libxl: add internal function to get a domain's scheduler
authorIan Campbell <ian.campbell@citrix.com>
Fri, 1 Jun 2012 11:06:18 +0000 (12:06 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 1 Jun 2012 11:06:18 +0000 (12:06 +0100)
commit1b0c3e785e30de60bd93de53218907b2a3771839
treed5cbdc8f285f5f3b12682576700f0ef251f10234
parent24879b00baf0e7cf5c9ed43112ac77e3c7735dfb
libxl: add internal function to get a domain's scheduler

This takes into account cpupools.

Add a helper to get the info for a single cpu pool, refactor libxl_list_cpupool
t use this. While there fix the leaks due to not disposing the partial list on
realloc failure in that function.

Fix the failure of sched_domain_output to free the poolinfo list.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl.h
tools/libxl/libxl_dom.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_types.idl
tools/libxl/libxl_utils.c
tools/libxl/xl_cmdimpl.c